package com.wnm.dao;

import org.apache.ibatis.annotations.Param;

import com.wnm.pojo.User;

public interface UserDao {
	public User findByUserName(String username);

	public void add(User user);

	public User findUserByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

	public User findUserByCode(String code);

	public void updateStatus(User user);

	public void updatePasswordByUid(@Param("userid")int uid,@Param("newpassword")String newPassword);

}
